1 /* 2 * This file is part of gtkD. 3 * 4 * gtkD is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU Lesser General Public License 6 * as published by the Free Software Foundation; either version 3 7 * of the License, or (at your option) any later version, with 8 * some exceptions, please read the COPYING file. 9 * 10 * gtkD is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public License 16 * along with gtkD; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA 18 */ 19 20 // generated automatically - do not change 21 // find conversion definition on APILookup.txt 22 // implement new conversion functionalities on the wrap.utils pakage 23 24 25 module sourceview.c.types; 26 27 public import gdk.c.types; 28 public import gdkpixbuf.c.types; 29 public import gio.c.types; 30 public import glib.c.types; 31 public import gobject.c.types; 32 public import gtk.c.types; 33 public import pango.c.types; 34 35 36 public enum GtkSourceBackgroundPatternType 37 { 38 /** 39 * no pattern 40 */ 41 NONE = 0, 42 /** 43 * grid pattern 44 */ 45 GRID = 1, 46 } 47 alias GtkSourceBackgroundPatternType BackgroundPatternType; 48 49 public enum GtkSourceBracketMatchType 50 { 51 /** 52 * there is no bracket to match. 53 */ 54 NONE = 0, 55 /** 56 * matching a bracket 57 * failed because the maximum range was reached. 58 */ 59 OUT_OF_RANGE = 1, 60 /** 61 * a matching bracket was not found. 62 */ 63 NOT_FOUND = 2, 64 /** 65 * a matching bracket was found. 66 */ 67 FOUND = 3, 68 } 69 alias GtkSourceBracketMatchType BracketMatchType; 70 71 public enum GtkSourceChangeCaseType 72 { 73 /** 74 * change case to lowercase. 75 */ 76 LOWER = 0, 77 /** 78 * change case to uppercase. 79 */ 80 UPPER = 1, 81 /** 82 * toggle case of each character. 83 */ 84 TOGGLE = 2, 85 /** 86 * capitalize each word. 87 */ 88 TITLE = 3, 89 } 90 alias GtkSourceChangeCaseType ChangeCaseType; 91 92 public enum GtkSourceCompletionActivation 93 { 94 NONE = 0, 95 INTERACTIVE = 1, 96 USER_REQUESTED = 2, 97 } 98 alias GtkSourceCompletionActivation CompletionActivation; 99 100 public enum GtkSourceCompletionColumn 101 { 102 ICON = 0, 103 BEFORE = 1, 104 TYPED_TEXT = 2, 105 AFTER = 3, 106 COMMENT = 4, 107 DETAILS = 5, 108 } 109 alias GtkSourceCompletionColumn CompletionColumn; 110 111 public enum GtkSourceCompressionType 112 { 113 /** 114 * plain text. 115 */ 116 NONE = 0, 117 /** 118 * gzip compression. 119 */ 120 GZIP = 1, 121 } 122 alias GtkSourceCompressionType CompressionType; 123 124 /** 125 * An error code used with the %GTK_SOURCE_FILE_LOADER_ERROR domain. 126 */ 127 public enum GtkSourceFileLoaderError 128 { 129 /** 130 * The file is too big. 131 */ 132 TOO_BIG = 0, 133 /** 134 * It is not 135 * possible to detect the encoding automatically. 136 */ 137 ENCODING_AUTO_DETECTION_FAILED = 1, 138 /** 139 * There was an encoding 140 * conversion error and it was needed to use a fallback character. 141 */ 142 CONVERSION_FALLBACK = 2, 143 } 144 alias GtkSourceFileLoaderError FileLoaderError; 145 146 /** 147 * An error code used with the %GTK_SOURCE_FILE_SAVER_ERROR domain. 148 */ 149 public enum GtkSourceFileSaverError 150 { 151 /** 152 * The buffer contains invalid 153 * characters. 154 */ 155 INVALID_CHARS = 0, 156 /** 157 * The file is externally 158 * modified. 159 */ 160 EXTERNALLY_MODIFIED = 1, 161 } 162 alias GtkSourceFileSaverError FileSaverError; 163 164 /** 165 * Flags to define the behavior of a [flags@FileSaverFlags]. 166 */ 167 public enum GtkSourceFileSaverFlags 168 { 169 /** 170 * No flags. 171 */ 172 NONE = 0, 173 /** 174 * Ignore invalid characters. 175 */ 176 IGNORE_INVALID_CHARS = 1, 177 /** 178 * Save file despite external modifications. 179 */ 180 IGNORE_MODIFICATION_TIME = 2, 181 /** 182 * Create a backup before saving the file. 183 */ 184 CREATE_BACKUP = 4, 185 } 186 alias GtkSourceFileSaverFlags FileSaverFlags; 187 188 /** 189 * The alignment mode of the renderer, when a cell spans multiple lines (due to 190 * text wrapping). 191 */ 192 public enum GtkSourceGutterRendererAlignmentMode 193 { 194 /** 195 * The full cell. 196 */ 197 CELL = 0, 198 /** 199 * The first line. 200 */ 201 FIRST = 1, 202 /** 203 * The last line. 204 */ 205 LAST = 2, 206 } 207 alias GtkSourceGutterRendererAlignmentMode GutterRendererAlignmentMode; 208 209 public enum GtkSourceNewlineType 210 { 211 /** 212 * line feed, used on UNIX. 213 */ 214 LF = 0, 215 /** 216 * carriage return, used on Mac. 217 */ 218 CR = 1, 219 /** 220 * carriage return followed by a line feed, used 221 * on Windows. 222 */ 223 CR_LF = 2, 224 } 225 alias GtkSourceNewlineType NewlineType; 226 227 public enum GtkSourceSmartHomeEndType 228 { 229 /** 230 * smart-home-end disabled. 231 */ 232 DISABLED = 0, 233 /** 234 * move to the first/last 235 * non-whitespace character on the first press of the HOME/END keys and 236 * to the beginning/end of the line on the second press. 237 */ 238 BEFORE = 1, 239 /** 240 * move to the beginning/end of the 241 * line on the first press of the HOME/END keys and to the first/last 242 * non-whitespace character on the second press. 243 */ 244 AFTER = 2, 245 /** 246 * always move to the first/last 247 * non-whitespace character when the HOME/END keys are pressed. 248 */ 249 ALWAYS = 3, 250 } 251 alias GtkSourceSmartHomeEndType SmartHomeEndType; 252 253 public enum GtkSourceSortFlags 254 { 255 /** 256 * no flags specified 257 */ 258 NONE = 0, 259 /** 260 * case sensitive sort 261 */ 262 CASE_SENSITIVE = 1, 263 /** 264 * sort in reverse order 265 */ 266 REVERSE_ORDER = 2, 267 /** 268 * remove duplicates 269 */ 270 REMOVE_DUPLICATES = 4, 271 } 272 alias GtkSourceSortFlags SortFlags; 273 274 /** 275 * #GtkSourceSpaceLocationFlags contains flags for white space locations. 276 * 277 * If a line contains only white spaces (no text), the white spaces match both 278 * %GTK_SOURCE_SPACE_LOCATION_LEADING and %GTK_SOURCE_SPACE_LOCATION_TRAILING. 279 */ 280 public enum GtkSourceSpaceLocationFlags 281 { 282 /** 283 * No flags. 284 */ 285 NONE = 0, 286 /** 287 * Leading white spaces on a line, i.e. the 288 * indentation. 289 */ 290 LEADING = 1, 291 /** 292 * White spaces inside a line of text. 293 */ 294 INSIDE_TEXT = 2, 295 /** 296 * Trailing white spaces on a line. 297 */ 298 TRAILING = 4, 299 /** 300 * White spaces anywhere. 301 */ 302 ALL = 7, 303 } 304 alias GtkSourceSpaceLocationFlags SpaceLocationFlags; 305 306 /** 307 * #GtkSourceSpaceTypeFlags contains flags for white space types. 308 */ 309 public enum GtkSourceSpaceTypeFlags 310 { 311 /** 312 * No flags. 313 */ 314 NONE = 0, 315 /** 316 * Space character. 317 */ 318 SPACE = 1, 319 /** 320 * Tab character. 321 */ 322 TAB = 2, 323 /** 324 * Line break character. If the 325 * #GtkSourceBuffer:implicit-trailing-newline property is %TRUE, 326 * #GtkSourceSpaceDrawer also draws a line break at the end of the buffer. 327 */ 328 NEWLINE = 4, 329 /** 330 * Non-breaking space character. 331 */ 332 NBSP = 8, 333 /** 334 * All white spaces. 335 */ 336 ALL = 15, 337 } 338 alias GtkSourceSpaceTypeFlags SpaceTypeFlags; 339 340 public enum GtkSourceViewGutterPosition 341 { 342 /** 343 * the gutter position of the lines 344 * renderer 345 */ 346 LINES = -30, 347 /** 348 * the gutter position of the marks 349 * renderer 350 */ 351 MARKS = -20, 352 } 353 alias GtkSourceViewGutterPosition ViewGutterPosition; 354 355 struct GtkSourceBuffer 356 { 357 GtkTextBuffer parentInstance; 358 } 359 360 struct GtkSourceBufferClass 361 { 362 GtkTextBufferClass parentClass; 363 /** */ 364 extern(C) void function(GtkSourceBuffer* buffer, GtkTextIter* iter, GtkSourceBracketMatchType state) bracketMatched; 365 void*[20] Reserved; 366 } 367 368 struct GtkSourceCompletion; 369 370 struct GtkSourceCompletionCell; 371 372 struct GtkSourceCompletionCellClass 373 { 374 GtkWidgetClass parentClass; 375 } 376 377 struct GtkSourceCompletionClass 378 { 379 GObjectClass parentClass; 380 } 381 382 struct GtkSourceCompletionContext; 383 384 struct GtkSourceCompletionContextClass 385 { 386 GObjectClass parentClass; 387 } 388 389 struct GtkSourceCompletionProposal; 390 391 struct GtkSourceCompletionProposalInterface 392 { 393 GTypeInterface parentIface; 394 } 395 396 struct GtkSourceCompletionProvider; 397 398 struct GtkSourceCompletionProviderInterface 399 { 400 GTypeInterface parentIface; 401 /** 402 * 403 * Params: 404 * self = a #GtkSourceCompletionProvider 405 * Returns: a title for the provider or %NULL 406 */ 407 extern(C) char* function(GtkSourceCompletionProvider* self) getTitle; 408 /** */ 409 extern(C) int function(GtkSourceCompletionProvider* self, GtkSourceCompletionContext* context) getPriority; 410 /** */ 411 extern(C) int function(GtkSourceCompletionProvider* self, GtkTextIter* iter, dchar ch) isTrigger; 412 /** */ 413 extern(C) int function(GtkSourceCompletionProvider* self, GtkSourceCompletionContext* context, GtkSourceCompletionProposal* proposal, uint keyval, GdkModifierType state) keyActivates; 414 /** */ 415 extern(C) GListModel* function(GtkSourceCompletionProvider* self, GtkSourceCompletionContext* context, GError** err) populate; 416 /** */ 417 extern(C) void function(GtkSourceCompletionProvider* self, GtkSourceCompletionContext* context, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) populateAsync; 418 /** 419 * 420 * Params: 421 * self = a #GtkSourceCompletionProvider 422 * result = a #GAsyncResult provided to callback 423 * Returns: a #GListModel of #GtkSourceCompletionProposal 424 * 425 * Throws: GException on failure. 426 */ 427 extern(C) GListModel* function(GtkSourceCompletionProvider* self, GAsyncResult* result, GError** err) populateFinish; 428 /** */ 429 extern(C) void function(GtkSourceCompletionProvider* self, GtkSourceCompletionContext* context, GListModel* model) refilter; 430 /** */ 431 extern(C) void function(GtkSourceCompletionProvider* self, GtkSourceCompletionContext* context, GtkSourceCompletionProposal* proposal, GtkSourceCompletionCell* cell) display; 432 /** */ 433 extern(C) void function(GtkSourceCompletionProvider* self, GtkSourceCompletionContext* context, GtkSourceCompletionProposal* proposal) activate; 434 /** 435 * 436 * Params: 437 * self = a #GtkSourceCompletionProvider 438 * context = a #GtkSourceCompletionContext 439 * proposal = a #GtkSourceCompletionProposal 440 * Returns: a #GPtrArray of #GtkSourceCompletionProposal or %NULL. 441 */ 442 extern(C) GPtrArray* function(GtkSourceCompletionProvider* self, GtkSourceCompletionContext* context, GtkSourceCompletionProposal* proposal) listAlternates; 443 } 444 445 struct GtkSourceCompletionSnippets 446 { 447 GObject parentInstance; 448 } 449 450 struct GtkSourceCompletionSnippetsClass 451 { 452 GObjectClass parentClass; 453 void*[10] Reserved; 454 } 455 456 struct GtkSourceCompletionWords 457 { 458 GObject parentInstance; 459 } 460 461 struct GtkSourceCompletionWordsClass 462 { 463 GObjectClass parentClass; 464 void*[10] Reserved; 465 } 466 467 struct GtkSourceEncoding; 468 469 struct GtkSourceFile 470 { 471 GObject parentInstance; 472 } 473 474 struct GtkSourceFileClass 475 { 476 GObjectClass parentClass; 477 void*[10] Reserved; 478 } 479 480 struct GtkSourceFileLoader; 481 482 struct GtkSourceFileLoaderClass 483 { 484 GObjectClass parentClass; 485 } 486 487 struct GtkSourceFileSaver; 488 489 struct GtkSourceFileSaverClass 490 { 491 GObjectClass parentClass; 492 } 493 494 struct GtkSourceGutter; 495 496 struct GtkSourceGutterClass 497 { 498 GtkWidgetClass parentClass; 499 } 500 501 struct GtkSourceGutterLines; 502 503 struct GtkSourceGutterLinesClass 504 { 505 GObjectClass parentClass; 506 } 507 508 struct GtkSourceGutterRenderer 509 { 510 GtkWidget parentInstance; 511 } 512 513 struct GtkSourceGutterRendererClass 514 { 515 GtkWidgetClass parentClass; 516 /** */ 517 extern(C) void function(GtkSourceGutterRenderer* renderer, GtkSourceGutterLines* lines, uint line) queryData; 518 /** */ 519 extern(C) void function(GtkSourceGutterRenderer* renderer, GtkSourceGutterLines* lines) begin; 520 /** */ 521 extern(C) void function(GtkSourceGutterRenderer* renderer, GtkSnapshot* snapshot, GtkSourceGutterLines* lines, uint line) snapshotLine; 522 /** */ 523 extern(C) void function(GtkSourceGutterRenderer* renderer) end; 524 /** */ 525 extern(C) void function(GtkSourceGutterRenderer* renderer, GtkSourceView* oldView) changeView; 526 /** */ 527 extern(C) void function(GtkSourceGutterRenderer* renderer, GtkSourceBuffer* oldBuffer) changeBuffer; 528 /** 529 * 530 * Params: 531 * renderer = a #GtkSourceGutterRenderer 532 * iter = a #GtkTextIter at the start of the line to be activated 533 * area = a #GdkRectangle of the cell area to be activated 534 * Returns: %TRUE if the renderer can be activated, %FALSE otherwise 535 */ 536 extern(C) int function(GtkSourceGutterRenderer* renderer, GtkTextIter* iter, GdkRectangle* area) queryActivatable; 537 /** */ 538 extern(C) void function(GtkSourceGutterRenderer* renderer, GtkTextIter* iter, GdkRectangle* area, uint button, GdkModifierType state, int nPresses) activate; 539 void*[20] Reserved; 540 } 541 542 struct GtkSourceGutterRendererPixbuf 543 { 544 GtkSourceGutterRenderer parentInstance; 545 } 546 547 struct GtkSourceGutterRendererPixbufClass 548 { 549 GtkSourceGutterRendererClass parentClass; 550 void*[10] Reserved; 551 } 552 553 struct GtkSourceGutterRendererText 554 { 555 GtkSourceGutterRenderer parentInstance; 556 } 557 558 struct GtkSourceGutterRendererTextClass 559 { 560 GtkSourceGutterRendererClass parentClass; 561 void*[10] Reserved; 562 } 563 564 struct GtkSourceHover; 565 566 struct GtkSourceHoverClass 567 { 568 GObjectClass parentClass; 569 } 570 571 struct GtkSourceHoverContext; 572 573 struct GtkSourceHoverContextClass 574 { 575 GObjectClass parentClass; 576 } 577 578 struct GtkSourceHoverDisplay; 579 580 struct GtkSourceHoverDisplayClass 581 { 582 GtkWidgetClass parentClass; 583 } 584 585 struct GtkSourceHoverProvider; 586 587 struct GtkSourceHoverProviderInterface 588 { 589 GTypeInterface parentIface; 590 /** */ 591 extern(C) int function(GtkSourceHoverProvider* self, GtkSourceHoverContext* context, GtkSourceHoverDisplay* display, GError** err) populate; 592 /** */ 593 extern(C) void function(GtkSourceHoverProvider* self, GtkSourceHoverContext* context, GtkSourceHoverDisplay* display, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) populateAsync; 594 /** */ 595 extern(C) int function(GtkSourceHoverProvider* self, GAsyncResult* result, GError** err) populateFinish; 596 } 597 598 struct GtkSourceIndenter; 599 600 /** 601 * The virtual function table for #GtkSourceIndenter. 602 */ 603 struct GtkSourceIndenterInterface 604 { 605 GTypeInterface parentIface; 606 /** 607 * 608 * Params: 609 * self = a #GtkSourceIndenter 610 * view = a #GtkSourceView 611 * location = the location where @ch is to be inserted 612 * state = modifier state for the insertion 613 * keyval = the keyval pressed such as [const@Gdk.KEY_Return] 614 * Returns: %TRUE if indentation should be automatically triggered; 615 * otherwise %FALSE and no indentation will be performed. 616 */ 617 extern(C) int function(GtkSourceIndenter* self, GtkSourceView* view, GtkTextIter* location, GdkModifierType state, uint keyval) isTrigger; 618 /** */ 619 extern(C) void function(GtkSourceIndenter* self, GtkSourceView* view, GtkTextIter* iter) indent; 620 } 621 622 struct GtkSourceLanguage; 623 624 struct GtkSourceLanguageClass 625 { 626 GObjectClass parentClass; 627 } 628 629 struct GtkSourceLanguageManager; 630 631 struct GtkSourceLanguageManagerClass 632 { 633 GObjectClass parentClass; 634 } 635 636 struct GtkSourceMap 637 { 638 GtkSourceView parentInstance; 639 } 640 641 struct GtkSourceMapClass 642 { 643 GtkSourceViewClass parentClass; 644 void*[10] Reserved; 645 } 646 647 struct GtkSourceMark 648 { 649 GtkTextMark parentInstance; 650 } 651 652 struct GtkSourceMarkAttributes; 653 654 struct GtkSourceMarkAttributesClass 655 { 656 GObjectClass parentClass; 657 } 658 659 struct GtkSourceMarkClass 660 { 661 GtkTextMarkClass parentClass; 662 void*[10] Reserved; 663 } 664 665 struct GtkSourcePrintCompositor 666 { 667 GObject parentInstance; 668 } 669 670 struct GtkSourcePrintCompositorClass 671 { 672 GObjectClass parentClass; 673 void*[10] Reserved; 674 } 675 676 struct GtkSourceRegion 677 { 678 GObject parentInstance; 679 } 680 681 struct GtkSourceRegionClass 682 { 683 GObjectClass parentClass; 684 void*[10] Reserved; 685 } 686 687 struct GtkSourceRegionIter 688 { 689 void* dummy1; 690 uint dummy2; 691 void* dummy3; 692 } 693 694 struct GtkSourceSearchContext; 695 696 struct GtkSourceSearchContextClass 697 { 698 GObjectClass parentClass; 699 } 700 701 struct GtkSourceSearchSettings 702 { 703 GObject parentInstance; 704 } 705 706 struct GtkSourceSearchSettingsClass 707 { 708 GObjectClass parentClass; 709 void*[10] Reserved; 710 } 711 712 struct GtkSourceSnippet; 713 714 struct GtkSourceSnippetChunk; 715 716 struct GtkSourceSnippetChunkClass 717 { 718 GObjectClass parentClass; 719 } 720 721 struct GtkSourceSnippetClass 722 { 723 GObjectClass parentClass; 724 } 725 726 struct GtkSourceSnippetContext; 727 728 struct GtkSourceSnippetContextClass 729 { 730 GObjectClass parentClass; 731 } 732 733 struct GtkSourceSnippetManager; 734 735 struct GtkSourceSnippetManagerClass 736 { 737 GObjectClass parentClass; 738 } 739 740 struct GtkSourceSpaceDrawer; 741 742 struct GtkSourceSpaceDrawerClass 743 { 744 GObjectClass parentClass; 745 } 746 747 struct GtkSourceStyle; 748 749 struct GtkSourceStyleClass 750 { 751 GObjectClass parentClass; 752 } 753 754 struct GtkSourceStyleScheme; 755 756 struct GtkSourceStyleSchemeChooser; 757 758 struct GtkSourceStyleSchemeChooserButton 759 { 760 GtkButton parentInstance; 761 } 762 763 struct GtkSourceStyleSchemeChooserButtonClass 764 { 765 GtkButtonClass parent; 766 void*[10] Reserved; 767 } 768 769 struct GtkSourceStyleSchemeChooserInterface 770 { 771 GTypeInterface baseInterface; 772 /** 773 * 774 * Params: 775 * chooser = a #GtkSourceStyleSchemeChooser 776 * Returns: the currently-selected scheme. 777 */ 778 extern(C) GtkSourceStyleScheme* function(GtkSourceStyleSchemeChooser* chooser) getStyleScheme; 779 /** */ 780 extern(C) void function(GtkSourceStyleSchemeChooser* chooser, GtkSourceStyleScheme* scheme) setStyleScheme; 781 void*[12] Reserved; 782 } 783 784 struct GtkSourceStyleSchemeChooserWidget 785 { 786 GtkWidget parentInstance; 787 } 788 789 struct GtkSourceStyleSchemeChooserWidgetClass 790 { 791 GtkWidgetClass parent; 792 void*[10] Reserved; 793 } 794 795 struct GtkSourceStyleSchemeClass 796 { 797 GObjectClass parentClass; 798 } 799 800 struct GtkSourceStyleSchemeManager; 801 802 struct GtkSourceStyleSchemeManagerClass 803 { 804 GObjectClass parentClass; 805 } 806 807 struct GtkSourceStyleSchemePreview; 808 809 struct GtkSourceStyleSchemePreviewClass 810 { 811 GtkWidgetClass parentClass; 812 } 813 814 struct GtkSourceTag 815 { 816 GtkTextTag parentInstance; 817 } 818 819 struct GtkSourceTagClass 820 { 821 GtkTextTagClass parentClass; 822 void*[10] Reserved; 823 } 824 825 struct GtkSourceView 826 { 827 GtkTextView parentInstance; 828 } 829 830 struct GtkSourceViewClass 831 { 832 GtkTextViewClass parentClass; 833 /** */ 834 extern(C) void function(GtkSourceView* view, GtkTextIter* iter, uint button, GdkModifierType state, int nPresses) lineMarkActivated; 835 /** */ 836 extern(C) void function(GtkSourceView* view) showCompletion; 837 /** */ 838 extern(C) void function(GtkSourceView* view, int down) moveLines; 839 /** */ 840 extern(C) void function(GtkSourceView* view, int step) moveWords; 841 /** */ 842 extern(C) void function(GtkSourceView* view, GtkSourceSnippet* snippet, GtkTextIter* location) pushSnippet; 843 void*[20] Reserved; 844 } 845 846 struct GtkSourceVimIMContext; 847 848 struct GtkSourceVimIMContextClass 849 { 850 GtkIMContextClass parentClass; 851 } 852 853 /** 854 * Type definition for a function that will be called to create a 855 * [class@Gio.MountOperation]. This is useful for creating a [class@Gtk.MountOperation]. 856 * 857 * Params: 858 * file = a #GtkSourceFile. 859 * userdata = user data 860 */ 861 public alias extern(C) GMountOperation* function(GtkSourceFile* file, void* userdata) GtkSourceMountOperationFactory; 862 863 /** 864 * This function is called incrementally to process additional background work. 865 * A deadline is provided which can be checked using [func@GLib.get_monotonic_time] so 866 * that additional work can be processed each frame. 867 * 868 * This is useful for situations where you are incrementally performing 869 * background work such as spell checking or semantic syntax highlighting. 870 * 871 * Params: 872 * deadline = the time the callback should complete by 873 * userData = closure data provided when registering callback 874 * 875 * Returns: %TRUE if there is more work to process, otherwise %FALSE and the 876 * handler is unregistered. 877 * 878 * Since: 5.2 879 */ 880 public alias extern(C) int function(long deadline, void* userData) GtkSourceSchedulerCallback;